package mypazar.salesman;

import tr.edu.ege.seagent.planner.htn.Action;
import tr.edu.ege.seagent.planner.htn.ExecutionMethod;
import tr.edu.ege.seagent.planner.htn.Outcome;
import tr.edu.ege.seagent.planner.htn.Provision;

/**
 * Action class of ACInformProductPrice.
 */
public class ACInformProductPrice extends Action {

	/**
	 * ProductPrice provision.
	 */
	@Provision
	private Integer ProductPrice;

	/**
	 * Returns the value of the ProductPrice provision.
	 */
	public Integer getProductPrice() {
		return this.ProductPrice;
	}

	/**
	 * Sets the value of the ProductPrice provision.
	 */
	public void setProductPrice(Integer ProductPrice) {
		this.ProductPrice = ProductPrice;
	}

	/**
	 * Price outcome.
	 */
	@Outcome
	private Integer Price;

	/**
	 * Returns the value of the Price outcome.
	 */
	public Integer getPrice() {
		return this.Price;
	}

	/**
	 * Sets the value of the Price outcome.
	 */
	public void setPrice(Integer Price) {
		this.Price = Price;
	}

	/**
	 * SenderName outcome.
	 */
	@Outcome
	private String SenderName;

	/**
	 * Returns the value of the SenderName outcome.
	 */
	public String getSenderName() {
		return this.SenderName;
	}

	/**
	 * Sets the value of the SenderName outcome.
	 */
	public void setSenderName(String SenderName) {
		this.SenderName = SenderName;
	}

	/**
	 * Execution method.
	 */
	@ExecutionMethod
	public void execute() {
		this.setSenderName(getAgentIdentifier().toString().substring(0, 9));
		this.setPrice(getProductPrice());
	}
}
